from sqlalchemy import Column, ForeignKey, Integer, Table

from src.database.models.base import TimedBaseModel

orders_users = Table(
    "orders_users",
    TimedBaseModel.metadata,
    Column("order_id", Integer, ForeignKey("order.id")),
    Column("user_id", Integer, ForeignKey("user.id")),
)

promocodes_users = Table(
    "promocodes_users",
    TimedBaseModel.metadata,
    Column("promocode_id", Integer, ForeignKey("promocode.id")),
    Column("user_id", Integer, ForeignKey("user.id")),
)
